console.log('-----------------')
console.log('test8')

function* numbers(){
    yield 1;
    yield 2;
    return 3;

}
console.log([...numbers()])     // [1, 2]